package com.dhcc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dhcc.entity.SysUserOrganization;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysUserOrganizationMapper extends BaseMapper<SysUserOrganization> {
    List<String> selectInstitutionIdsByUserId(String userId);

    List<String> getUserIdsByInstitutionId(String institutionId);

    Integer add(String userId, String institutionId);

    Integer deleteByUserIdAndInstitutionId(String userId, String institutionId);
}
